package me.aartikov.simplescreenswitchersample.screens;

import me.aartikov.alligator.Screen;

import java.io.Serializable;



// Screens used by FragmentScreenSwitcher must have equals and hashCode methods correctly overridden.

public abstract class TabScreen extends Screen implements Serializable {

	private String mName;

	public TabScreen(String name, int mContainerId, String group) {
		super(mContainerId, group);
		this.mName = name;
	}

	public String getmName() {
		return mName;
	}

	@Override
	public boolean equals(Object obj) {
		return obj != null && this.getClass() == obj.getClass();
	}

	@Override
	public int hashCode() {
		return getClass().hashCode();
	}

	public static class Ohos extends TabScreen {

		public Ohos(String name, int mContainerId, String group) {
			super(name, mContainerId, group);
		}
	}

	public static class Bug extends TabScreen {

		public Bug(String name, int mContainerId, String group) {
			super(name, mContainerId, group);
		}
	}

	public static class Dog extends TabScreen {

		public Dog(String name, int mContainerId, String group) {
			super(name, mContainerId, group);
		}
	}
}
